package main

import (
	"github.com/gin-gonic/gin"
	_ "github.com/go-sql-driver/mysql"
	"hepan1/conf"
	"hepan1/src/model"
	"hepan1/src/route"
)

func init(){
	conf.Init()
	model.Setup()

	//defer model.Db.Close()
}
func main()  {

	r := gin.Default()

	//var users [][]string
	//users,err:= model.GetTheUser()
	//if err!=nil{
	//	fmt.Println(err)
	//	return
	//}
	//model.Db.Exec()
	//fmt.Println(users)
	r = route.PathRoute(r)
	r.Run(conf.Port)
}
